package com.yangxk.kadmin.generator.engine;

import com.yangxk.kadmin.generator.constant.Const;
import com.yangxk.kadmin.generator.constant.Vue;
import com.yangxk.kadmin.generator.genfile.GeneratorFile;
import com.yangxk.kadmin.generator.internal.ConfigInternal;

import java.io.File;

import static com.yangxk.kadmin.generator.util.Tools.joinPath;

public class ReportTemplateEngine extends SimpleTemplateEngine {

    @Override
    public void generatorVuePage(ConfigInternal configInternal) {
        String outputPath = joinPath(configInternal.getVueProjectPath(),  Vue.VUE_PAGE_PATH + File.separator + Vue.VUE_REPORT_DIR);
        String filename = configInternal.getNames().get(Const.VUE_PAGE_NAME) + ".vue";

        write(objMap, configInternal.getTemplatePath().get(Const.VUE_PAGE_TEMPLATE),
                outputPath, filename);

        generatorFiles.add(new GeneratorFile(filename, outputPath + File.separator + filename));
    }

    @Override
    public void generatorMapper(ConfigInternal configInternal) {
        super.generatorMapper(configInternal);
    }

    @Override
    public void generatorXml(ConfigInternal configInternal) {
        super.generatorXml(configInternal);
    }

    @Override
    public void generatorService(ConfigInternal configInternal) {
        super.generatorService(configInternal);
    }

    @Override
    public void generatorServiceImpl(ConfigInternal configInternal) {
        super.generatorServiceImpl(configInternal);
    }

    @Override
    public void generatorController(ConfigInternal configInternal) {
        super.generatorController(configInternal);
    }

    @Override
    public void generatorPo(ConfigInternal configInternal) {
        super.generatorPo(configInternal);
    }

    @Override
    public void generatorPojo(ConfigInternal configInternal) {
        super.generatorPojo(configInternal);
    }

    @Override
    public void generatorVo(ConfigInternal configInternal) {
        super.generatorVo(configInternal);
    }

    @Override
    public void generatorQueryForm(ConfigInternal configInternal) {
        super.generatorQueryForm(configInternal);
    }

    @Override
    public void generatorEditForm(ConfigInternal configInternal) {
        super.generatorEditForm(configInternal);
    }

    @Override
    public void generatorVueApi(ConfigInternal configInternal) {
        super.generatorVueApi(configInternal);
    }

}
